<%@include file="connection.jsp" %>

<%
int rec=Integer.parseInt(request.getParameter("rec").toString());

int n=0;

st=con.createStatement(); 
rs=st.executeQuery("select COUNT(sr_no) from user");

while(rs.next()){
    n=rs.getInt(1);
    
}

if(n%rec==0){
    out.print("{\"page\":\""+(n/rec)+" \" }");
}
else
    out.print("{\"page\":\""+(n/rec+1)+" \" }");
%>